export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface User {
  id?: string
  name: string
  username: string
  password: string
  roleName?: string
  createTime?: string
  updateTime?: string
}

export type Records = User[]

export interface UserResponseData extends ResponseData {
  data: {
    records: Records
    total: number
  }
}

// 角色列表
export interface RoleData {
  id: string | number
  roleName: string
  createTime?: string
  updateTime?: string
}

export type RoleList = RoleData[]

export interface RoleListResponseData extends ResponseData {
  data: {
    assignRoles: RoleList
    allRolesList: RoleList
  }
}

// 角色分配
export interface RoleVo {
  roleIdList: string[]
  userId: string
}
